package day31;
import java.util.Scanner;

public class A3 {

    /**
     * 数位染色
     * @param args
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            //1.准备工作
            //2.初始化
            //3.求dp表
            long x = in.nextLong();
            int[] arr = new int[20];
            int sum=0,ii=0;
            while(x!=0) {
                int t = (int)x%10;
                arr[ii++] = t;
                sum += t;
                x /= 10;
            }
            if(sum%2!=0) {
                System.out.println("No");
            }else {
                sum /= 2;
                boolean[] dp = new boolean[sum+1];
                dp[0]=true;
                for(int i=0;i<ii;i++) {
                    for(int j=sum;j>=arr[i];j--) {
                        dp[j]=dp[j] || dp[j-arr[i]];
                    }
                }
                if(dp[sum]) System.out.println("Yes");
                else System.out.println("No");
            }
        }
    }



}
